package com.xiaoma.bridge.demo;

import com.xiaoma.bridge.Circle;
import com.xiaoma.bridge.GreenCircle;
import com.xiaoma.bridge.RedCircle;
import com.xiaoma.bridge.Shape;

/**
 * @description  
 * @author wangtianxiang
 * @date: 2021/7/8 9:12
 */
public class BridgePatternDemo {
    public static void main(String[] args) {
        Shape redCircle = new Circle(100,100, 10, new RedCircle());
        Shape greenCircle = new Circle(100,100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}
